﻿using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace cap_demo.Application.Commands
{
    public class CreateOrderCommand : IRequest<long>
    {
        public CreateOrderCommand(string itemId, int itemCount)
        {
            ItemId = itemId;
            ItemCount = itemCount;
        }
        /// <summary>
        /// 项目数量
        /// </summary>
        public long ItemCount { get; private set; }
        /// <summary>
        /// 商品ID
        /// </summary>
        public string ItemId { get; private set; }
    }
}
